package com.example.xd.mvp_project.base;

/**
 * @auther XuDan on 2018/10/16.
 */
public class BasePresenter<V extends BaseView> {
    private V mvpView;

    public void attachView(V mvpView) {
        this.mvpView = mvpView;
    }

    public void detachView() {
        this.mvpView = null;
    }

    public boolean isViewAttach() {
        return mvpView != null;
    }

    public V getView() {
        return mvpView;
    }
}
